package cn.cqone.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.UUID;

@Data
public class GuaranteeDetails {
    //id
    private Long id;

    @DateTimeFormat(pattern="yyyy+-MM-dd")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    //保修时间
    private Date guaranteeTime = new Date();

    //保修单单号
    private String sn = UUID.randomUUID().toString().substring(0,5).replaceAll("-","");


    //保修类容
    private String guaranteeContent;

    //是否解决
    private int solve = 0;


}
